package com.oceansoft.mobile.econsole.vehicle.persistence;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.oceansoft.mobile.econsole.modules.api.entity.DriverInfo;
import com.oceansoft.mobile.econsole.modules.api.entity.DriverInfoApi;
import com.oceansoft.mobile.econsole.modules.api.entity.VehicleInfo;
import com.oceansoft.mobile.econsole.modules.api.entity.ViolationDriver;
import com.oceansoft.mobile.econsole.modules.api.entity.ViolationInfo;
import com.oceansoft.mobile.econsole.modules.api.entity.ViolationPhoto;

@Repository
public interface VehicleMapper {
	
	/**
	 * 查询车辆信息（0表示不存在）
	 * @param vehicleInfo
	 * @return
	 */
	public VehicleInfo loadVehicleCount(VehicleInfo vehicleInfo);
	
	/**
	 * 查询车辆违法信息
	 * @param vehicleInfo
	 * @return
	 */
	public List<ViolationInfo> loadViolationInfo(VehicleInfo vehicleInfo);
	
	/**
	 * 查询车辆违法照片
	 * @param violationInfo
	 * @return
	 */
	public ViolationPhoto loadViolationPhoto (ViolationInfo violationInfo);
	
	/**
	 * 查询驾驶证违法信息
	 * @param driverInfo
	 * @return
	 */
	public List<ViolationDriver> loadDriverViolation(DriverInfo driverInfo);
	
	/**
	 * 根据身份证查询车辆信息
	 * @param sfzh
	 * @return
	 */
	public List<DriverInfoApi> loadVehicleInfo(String sfzh);
	
	/**
	 * 根据身份证查询驾驶证信息
	 * @param sfzh
	 * @return
	 */
	public List<DriverInfoApi> loadDriverInfo(String sfzh);
	
	public int validateAuth(Map<String,String> params);

}
